/*
 * File:   Utf16Encode.cpp
 * Author: luis
 *
 * Created on 05-08-2013, 12:17:49 AM
 */

#include "utf16encodetest.h"
#include "converter/utf16encode.h"
#include "ebook/ebook.h"
#include <string>
#include <string.h>
#include <stdlib.h>

using namespace std;

CPPUNIT_TEST_SUITE_REGISTRATION(Utf16Encode);

Utf16Encode::Utf16Encode()
{
}

Utf16Encode::~Utf16Encode()
{
}

void Utf16Encode::setUp()
{
}

void Utf16Encode::tearDown()
{
}

void Utf16Encode::testConvertUtf8ToUtf16GivenAFile()
{
    string filePath = "resources/utf8.txt";
    Converter* c = new Converter();
    string result = c->utf8ToUtf16(filePath);
    
    ofstream out("resources/utf16result.txt");
    out << result;
    out.close();
    
//    printf("\nexpected: %s\n", expected.c_str());
    
//    CPPUNIT_ASSERT(memcmp(expected.c_str(), result.c_str(), 44) == 0);
}

